package com.cq.hd.order.api.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

import java.io.Serializable;
import java.math.BigDecimal;

public class TotalGroupOrderSheet implements Serializable {

    @ExcelProperty(value = "总订单数", index = 0)
    @ColumnWidth(20)
    private Integer orderNum;

    @ExcelProperty(value = "核销订单数", index = 1)
    @ColumnWidth(20)
    private Integer verifyOrderNum;

    @ExcelProperty(value = "核销金额总计", index = 2)
    @ColumnWidth(20)
    private String verifyOrderAmt;

    @ExcelProperty(value = "订单补贴合计", index = 3)
    @ColumnWidth(20)
    private String totalOrderSubsidyAmt;

    @ExcelProperty(value = "佣金合计", index = 4)
    @ColumnWidth(20)
    private String totalCommissionAmt;

    @ExcelProperty(value = "总补贴金额", index = 5)
    @ColumnWidth(20)
    private String totalSubsidyAmt;

    @ExcelProperty(value = "下单人数", index = 6)
    @ColumnWidth(20)
    private Integer orderUserNum;

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getVerifyOrderNum() {
        return verifyOrderNum;
    }

    public void setVerifyOrderNum(Integer verifyOrderNum) {
        this.verifyOrderNum = verifyOrderNum;
    }

    public String getVerifyOrderAmt() {
        return verifyOrderAmt;
    }

    public void setVerifyOrderAmt(BigDecimal getVerifyOrderAmt) {
        if (getVerifyOrderAmt != null) {
            this.verifyOrderAmt = getVerifyOrderAmt.setScale(2, BigDecimal.ROUND_HALF_UP).toString();
        }
    }

    public String getTotalOrderSubsidyAmt() {
        return totalOrderSubsidyAmt;
    }

    public void setTotalOrderSubsidyAmt(BigDecimal getTotalOrderSubsidyAmt) {
        if (getTotalOrderSubsidyAmt != null) {
            this.totalOrderSubsidyAmt = getTotalOrderSubsidyAmt.setScale(2, BigDecimal.ROUND_HALF_UP).toString();
        }
    }

    public String getTotalCommissionAmt() {
        return totalCommissionAmt;
    }

    public void setTotalCommissionAmt(BigDecimal getTotalCommissionAmt) {
        if (getTotalCommissionAmt != null) {
            this.totalCommissionAmt = getTotalCommissionAmt.setScale(2, BigDecimal.ROUND_DOWN).toString();
        }
    }

    public String getTotalSubsidyAmt() {
        return totalSubsidyAmt;
    }

    public void setTotalSubsidyAmt(BigDecimal getTotalSubsidyAmt) {
        if (getTotalSubsidyAmt != null) {
            this.totalSubsidyAmt = getTotalSubsidyAmt.setScale(2, BigDecimal.ROUND_HALF_UP).toString();
        }
    }

    public Integer getOrderUserNum() {
        return orderUserNum;
    }

    public void setOrderUserNum(Integer orderUserNum) {
        this.orderUserNum = orderUserNum;
    }
}
